package com.hongshan.wallet.core.wallet

import com.hongshan.wallet.BR
import com.hongshan.wallet.R
import com.hongshan.wallet.base.BaseRecyclerAdapter
import com.hongshan.wallet.base.BaseViewHolder
import com.hongshan.wallet.base.MyViewModel
import com.hongshan.wallet.bean.BindInfoBean

/**
 * Copyright Zhangxx.
 * Copyright (c) 2019
 * All rights reserved
 *
 * @project  : Wallet
 * @package  : com.hongshan.wallet.core.wallet
 * @author   : zhangxx
 * @date     : 2019/5/24
 * @email    : qq957413212@hotmail.com
 * @desc     : //TODO
 */
class AccountTypeRecycleAdapter(var list:MutableList<BindInfoBean> = mutableListOf()): BaseRecyclerAdapter() {

    override fun getViewModel(holder: BaseViewHolder<MyViewModel>, position: Int) = AccountTypeItemViewModel(list[position])

    override fun getLayoutIdForPosition(position: Int) = R.layout.item_account_type

    override fun initVariableId(position: Int) = BR.vm

    override fun getItemCount() = list.size
}